<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', 'Page\Homepage@homePage');

Route::get('login', 'Login\Login@loadLogin');
Route::post('login', 'Login\Login@login');

Route::get('table', 'Page\Table@loadTable');
Route::get('tableJson', 'Page\Table@loadTableJson');
Route::get('add', 'Sale\Add@loadAdd');
Route::get('addJson', 'Sale\Add@loadAddJson');
Route::post('add', 'Sale\Add@add');
Route::post('delete', 'Sale\Delete@delete');
